package com.joinway.mobile.service;

import java.util.List;

import com.joinway.mobile.bean.Product;
import com.joinway.mobile.bean.form.OrderForm;
import com.joinway.mobile.bean.view.OrderProduct;
import com.joinway.mobile.bean.view.ShopCartProduct;

public interface JiayidaService {

	public List<Product> getProducts(Integer catId, int page, int rows) throws Exception;
	
	public Product getProductDetail(int id) throws Exception;
	
	public List<OrderProduct> getOrderedProducts(int userId, int page, int rows) throws Exception;

	public void deleteShopCart(int cartId) throws Exception;

	public void addShopCart(int userId, int pid, String propId, int number) throws Exception;
	
	public List<ShopCartProduct> getShopCartProduct(int userId, int page, int rows) throws Exception;
	
	public void updateShopCart(int cartId, int number) throws Exception;
	
	public void addOrder(String orderStr, String goodsList, String cartIds) throws Exception;
	
	public void createOrder(OrderForm form) throws Exception;
}
